﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EditReference.aspx.cs" Inherits="Admin_EditReference" Title="Admin ~ Select Reference" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table cellpadding="0" cellspacing="0" width="100%">
         <tr>
            <td align="center" style="width:100%">
                <table cellpadding="0" cellspacing="0" width="900">
                   
                    <tr>
                        <td align="left" valign="top">
                            <uc1:Header ID="Header1" runat="server" />
                        </td>
                    </tr>
                                                           
                    <tr>
                        <td align="center" style="width:100%;">        
                            <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                               
                                <tr>
                                   <td colspan="2" align="left" >
                                    <table >
                                        <tr>
                                         <td class="adminHeading" >Select the Reference&nbsp; </td>
                                         <td><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server"></asp:Label></td> 
                                         <td align="right" >
                                             <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/Home.aspx">Home</asp:HyperLink>
                                                            </td>                                         
                                        </tr>
                                    </table>
                                   </td> 
                                    
                                </tr> 
                                        
                               
                                                                                     
                                <tr id="trEditReference" runat="server" visible="false" >
                                    <td align="left">
                                        <table cellpadding="5" cellspacing="0" width="100%" >
                                            <tr>
                                                <td valign="top" align="left" style="width: 688px; height: 228px;" >
                                                    <table cellpadding="2" cellspacing="0" width="100%">                                           
                                                        <tr class="altanateAshBkg" id="tr1" runat="server" visible="false" >
                                                            <td class='label' style="width: 120px">ReferenceId</td>
                                                            <td><asp:TextBox ID="txtReferenceID" runat="server" 
                                    cssclass='textBox' Width='250px' MaxLength="50"></asp:TextBox></td>
                                                        </tr> 
                                                        <tr class="ashBkg">
                                                            <td class='label' style="width: 120px; height: 25px;">Author<span class='adminAsterix'>*</span></td>
                                                            <td style="height: 25px">
                                                                <asp:TextBox ID="txtAuthor" runat="server" cssclass='textBox' Width='535px' 
                                    MaxLength="500" Height="42px" TextMode="MultiLine"></asp:TextBox></td>
                                                        </tr> 
                                                        <tr class="altanateAshBkg">
                                                            <td class='label'>Citation<span class='adminAsterix'> *</span></td>
                                                            <td>
                                <asp:TextBox ID="txtCitation" runat="server"  
                                    cssclass='textBox' Width='538px' MaxLength="500" Height="116px" TextMode="MultiLine"></asp:TextBox></td>
                                                        </tr>   
                                                        <tr class="ashBkg">
                                                            <td class='label'>Organization<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtOraganization" runat="server" cssclass='textBox' 
                                    Width='536px' MaxLength="500" Height="145px" TextMode="MultiLine"></asp:TextBox></td>
                                                        </tr>
                                                        
                                                       
                                                        <tr>
                                                        <td colspan="2"> 
                                                            <table >
                                                                <tr>
                                                                    <td>
                                                                     <asp:Button ID="btnSave" runat="server" Height="35px" 
                                                                            Text="Save the Changes" Width="125px" onclick="btnSave_Click" 
                                                                            BorderStyle="Solid" /> 
                                                                    </td>
                                                                    <td>                                                                 
                                                                            <asp:Button ID="btnGo" runat="server" Height="35px" 
                                                                            Text="Navigate to Edit" Width="125px" onclick="btnGo_Click" 
                                                                                BorderStyle="Solid" />                                                                
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        
                                                        </tr>
                                                    </table>                                        
                                                </td>
                                                <td style="width:185px; height: 228px;" align="right" valign="top">
                                                    <img alt="" src="../Images/imgUsers.jpg" style="height: 282px; width: 187px" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr> 
                                
                               <tr id="trDgEditReference" runat="server" valign="top">
                                    <td align="left" style="padding-left:5px;">
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true" 
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgReference" 
                                            runat="server" onrowediting="dgReference_RowEditing" 
                                            onpageindexchanging="dgReference_PageIndexChanging" PageSize="6">
                                            <Columns>                                            
                                                <asp:BoundField  DataField="ref_id" HeaderText="Id"/>
                                                <asp:BoundField  DataField="author" HeaderText="Author"/>
                                                <asp:BoundField  DataField="citation" HeaderText="Citation" />
                                                <asp:BoundField  DataField="organizations" HeaderText="Organization" />
                                             </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                                                             
                                        </asp:GridView>
                                    </td>
                                </tr>
                                
                            </table>
                        </td>        
                    </tr>
                    
                    <tr>
                        <td style="height:10px">
                            <uc2:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
                </table>
             </td> 
           </tr> 
</table>
</asp:Content>

